package com.bona.core.appserver;

import java.io.IOException;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class DubboStart { 
	
	private static final String SPRING_CONTEXT_XML = "spring-context.xml";
	private static final String SPRINT_JEDIS_XML = "spring-redis.xml";
	private static final String SPRINT_DUBBO_XML = "spring-provider-dubbo.xml";

	public static void main(String[] args) throws IOException {
        
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
        		new String[] {SPRING_CONTEXT_XML, SPRINT_JEDIS_XML, SPRINT_DUBBO_XML});
        context.start();
        
        while (true) {
			try {
				Thread.currentThread();
				Thread.sleep(30000L);
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
    }
}
